<?php echo $this->doctype() ?>
<html>
<head>
    <?php echo $this->headTitle() ?>
   	<?php echo $this->headMeta() ?>
   	<?php echo $this->headLink() ?>
   	<?php echo $this->headScript() ?>
   	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="stylesheet" href="<?php echo $this->baseUrl() ?>/public/css/style.css?v=1" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php echo $this->baseUrl() ?>/public/js/script.js"></script>
</head>
<body>
    <div id="art-page-background-simple-gradient">
        <div id="art-page-background-gradient"></div>
    </div>
    <div id="art-main">
        <div class="art-sheet">
            <div class="art-sheet-tl"></div>
            <div class="art-sheet-tr"></div>
            <div class="art-sheet-bl"></div>
            <div class="art-sheet-br"></div>
            <div class="art-sheet-tc"></div>
            <div class="art-sheet-bc"></div>
            <div class="art-sheet-cl"></div>
            <div class="art-sheet-cr"></div>
            <div class="art-sheet-cc"></div>
            <div class="art-sheet-body">
                <div class="art-banner">Logo & Slogan</div>
                <div class="art-nav">
                <?php
					//@TODO: must change here
					$sessionUser = new Zend_Session_Namespace("Zend_Auth");			
					if(!empty($sessionUser->storage)):				 
				?>
                	<div style="float: right; margin-top: 8px; margin-right: 5px;">
                		Xin chào <b><?php echo $sessionUser->storage->username; ?></b> |                		 
                		<?php
                		 
                		if($sessionUser->storage->role==1): ?>
                		<a href="<?php echo $this->url(array('controller'=>'admin')); ?>">Manage</a> | 
                		<?php endif;?>                		
                		<a href="<?php echo $this->baseUrl("/user/logout");?>">Logout</a>
                	</div>
                <?php endif; ?>
                	<ul class="art-menu">
                        <li>
                			<a href="<?php echo $this->baseUrl() ?>/"><span class="t">Trang chủ</span></a>
                		</li>
                        <li>
                			<a href="<?php echo $this->baseUrl() ?>/thongke"><span class="t">Thống kê</span></a>
                		</li>
                        <li>
                			<a href="<?php echo $this->baseUrl() ?>/chiso"><span class="t">Phân tích INDEX</span></a>
                		</li>
                        <li>
                			<a href="#"><span class="t">Thuật ngữ</span></a>
                		</li>
                		<li>
                			<a href="#"><span class="t">Liên hệ</span></a>
                		</li>
                	</ul>
		       	
                </div>
                <?php echo $this->layout()->content ?>
                <div class="cleared"></div><div class="art-footer">
                    <div class="art-footer-t"></div>
                    <div class="art-footer-l"></div>
                    <div class="art-footer-b"></div>
                    <div class="art-footer-r"></div>
                    <div class="art-footer-body">
                         <a href="#" class="art-rss-tag-icon" title="RSS"></a>
                        <div class="art-footer-text">
                            <p>FOOTER</a><br />
                                Copyright &copy; 2010 ---. All Rights Reserved.</p>
                        </div>
                		<div class="cleared"></div>
                    </div>
                </div>
        		<div class="cleared"></div>
            </div>
        </div>
        <div class="cleared"></div>
    </div>
</body>
</html>
﻿

